<template>
  <div class="container galleryContainer">
    <div class="wrapper">
      <swiper :options="swiperOption">
        <!-- slides -->
        <swiper-slide v-for="(item,index) in imgs" :key="index">
          <img :src="item" alt="" class="swiper-img">
        </swiper-slide>
        <!-- Optional controls -->
        <div class="swiper-pagination"  slot="pagination"></div>
      </swiper>
    </div>
  </div>
</template>
<script type='text/babel'>
export default {
  props: {
    imgs: {
      type: Array,
      default () {
        return []
      }
    },
    showGallery: {
      type: Boolean,
      default () {
        return false
      }
    }
  },
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        paginationType: 'fraction',
        loop: true,
        observeParents: true,
        observer: true
      }
    }
  },
  created () {},
  mounted () {},
  updated () {},
  activated () {},
  computed: {},
  watch: {},
  methodS: {},
  components: {}
}
</script>
<style lang="scss" rel="stylesheet/scss">
  .galleryContainer {
    .swiper-container{
      overflow: inherit;
    }
  }
</style>
<style scoped lang="scss" rel="stylesheet/scss">
  .container{
    position: fixed;
    top:0;
    bottom: 0;
    left:0;
    right:0;
    z-index: 50;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .wrapper{
      width:100%;
      height:0;
      padding-bottom: 70.75%;
      background: #000;
      .swiper-pagination{
        bottom: -50px;
        color: #fff;
      }
      .swiper-img{
        width:100%;
      }
    }
  }
</style>
